-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proper partial s2t for less latency on iOS #32
proper partial s2t for less latency on iOS #32
Conversation
…r if there is one
Hi Michael, Thanks very much. I got it to work! I did have to do 2 changes, however, to get to work.
In TextSpeech.cs, you need to add the onPartialResults for iOS. Currently this code exists but only for IF_UNITY_ANDROID. I am talking about this code:
Thanks again, Korbain |
1 similar comment
Hi Michael, Thanks very much. I got it to work! I did have to do 2 changes, however, to get to work.
In TextSpeech.cs, you need to add the onPartialResults for iOS. Currently this code exists but only for IF_UNITY_ANDROID. I am talking about this code:
Thanks again, Korbain |
In addition, you need to stop the recognizer task in StopRecording or else it will continuously spam you with the same results
|
Hi @Korbain, I am a design student studying AR and I've been using the plugin for my project and it's been super helpful! Very glad it exists. I've been following a few youtube tutorials but now would really love to get partial s2t to work in my project but can't quite seem to understand how to get the partial results to unity. I don't know if you have time for a random stranger but would really appreciate some help! - Ana |
Hi Anita, sure. I’ll see what I can do to help. Did you do/understand the 3 points I identified above? |
@Korbain Hi, Korbain! Thanks for your input and information. |
Hi,
I just posted my class on Github in Implement Partial Results for iOS #29
Regis
…Sent from my iPhone
On Mar 4, 2021, at 3:30 PM, Miroshkin Oleg ***@***.***> wrote:
@Korbain Hi, Korbain! Thanks for your input and information.
I wanna ask: so, to use partialcallback on ios you need to enable it for UNITY_IOS directive and all will work?
Like this:
#if UNITY_ANDROID || UNITY_IOS
public Action onPartialResultsCallback;
/* Called when partial recognition results are available. */
public void onPartialResults(string _params)
{
if (onPartialResultsCallback != null)
onPartialResultsCallback(_params);
}
#endif
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
for issue #29 . Currently, iOS speech to text waits until after audio is done recording to do the translation as opposed to while audio is being recorded. By simply moving around the speech recognizer code, getting text back in to unity happens way faster, thus improving the app experience in iOS